package com.leyou.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @Date 2018/12/9  17:32
 * @Author JIE
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ExceptionEnums {
    BREAND_SAVE_ERROR(500,"新增品牌失败!"),
    SPEC_GROUP_SAVE_ERROR(500,"新增规格组失败!"),
    SPEC_GROUP_UPDATA_ERROR(500,"修改规格组失败!"),
    SPEC_GROUP_DELETE_ERROR(500,"删除规格组失败!"),
    SPEC_PARAM_SAVE_ERROR(500,"新增规格参数失败!"),
    SPEC_PARAM_UPDATA_ERROR(500,"修改规格参数失败!"),
    SPEC_PARAM_DELETE_ERROR(500,"删除规格参数失败!"),
    GOODS_UPDATE_ERROR(500,"更新商品失败!"),
    GOODS_SAVE_ERROR(500,"新增商品失败!"),
    BREAND_UPDATA_ERROR(500,"修改品牌失败!"),
    CATEGORY_NOT_FOND(404,"商品分类为空!"),
    BREAND_NOT_FOND(404,"品牌不存在!"),
    GOODS_NOT_FOND(404,"商品不存在!"),
    UPLOAD_ERROR(500,"文件上传失败!"),
    INVALID_FILE_TYPE(400,"无效的文件类型!"),
    SPEC_GROUP_NOT_FOND(404,"商品规格组不存在!"),
    SPEC_PARAM_NOT_FOND(404,"商品规格参数不存在!"),
    GOODS_DETAIL_NOT_FOND(404,"商品详情不存在!"),
    GOODS_SKU_NOT_FOND(404,"商品的SKU不存在!"),
    GOODS_STOCK_NOT_FOND(404,"商品的库存不存在!"),
    ;
    private int code;
    private String msg;


}
